package com.sofwin.controller.contents;

import com.sofwin.dto.CPatandproDto;
import com.sofwin.service.contents.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @program: ssm-parent
 * @description: 专利和产品控制层
 * @author: Mr.Xq
 * @create: 2021-04-25 11:30
 * @version:
 **/
@Controller
@RequestMapping("contents/product")
public class ProductController {

    @Autowired
    private ProductService service;

    @RequestMapping("data")
    public String toproduct(Integer companyId, Model model){
        CPatandproDto patandproDto = service.selectPatandproDtoByCompanyId(companyId);
        model.addAttribute("patandproDto",patandproDto);
        return "c_information/contents/product";
    }



}
